<style type="text/css">
* {font-size:15px;font-family: "Microsoft Yahei";}
table {border-collapse: collapse;}
td,th {border:1px solid #dddddd;color:#374459;text-align:left;padding:5px;line-height: 25px;}
thead tr{border-bottom:1px solid #000;background:#BE0101;}
thead th {color:#FFF;}
</style>

亲爱的${order.customerId?default("用户")}：您好！<br/>
<br/>
感谢您选购Link4A的产品，您于${order.saleDate?string("yyyy/MM/dd")}购买的设备已发货，设备授权如下：
<br/><br/>
<table border="0" cellpadding="0" cellspacing="0" width="60%">
	<thead>
	<tr>
		<th>设备型号</th>
		<th>授权MAC地址</th>
		<th>授权序列号</th>
		<th>有效期至</th>
	</tr>
	</thead>
	<tbody>
	<#list order.licenses as license>
	<tr>
		<td>${license.driver.provider.name} ${license.driver.name}</td>
		<td>${license.mac}</td>
		<td>${license.license?default("")}</td>
		<td>
			<#if license.status == "Idle">自激活日起${license.years}年有效
			<#elseif license.status == "Active">已于${license.activateDate?string("yyyy/MM/dd")}激活，${license.expireDate?string("yyyy/MM/dd")}前有效
			<#elseif license.status == "Expired">设备无效，授权已于${license.expireDate?string("yyyy/MM/dd")}过期
			<#elseif license.status == "Disabled">设备无效，已被禁用
			</#if>
		</td>
	</tr>
	</#list>
	</tbody>
</table>
<br/>
<br/>
${date?string("yyyy年MM月dd日")}<br/>
Link4A.com